﻿using System.ComponentModel.DataAnnotations;
using Volo.Abp.Validation;

namespace Demo.Admin.Application.Contracts.Users.Dto;

public class AdminUserCreateDto
{
    /// <summary>
    /// 用户名
    /// </summary>
    [Required]
    public string UserName { get; set; }
    
    [Required]
    public string Password { get; set; }

    /// <summary>
    /// 名字
    /// </summary>
    [Required]
    public string Name { get; set; }

    /// <summary>
    /// 姓氏
    /// </summary>
    [Required]
    public string Surname { get; set; }

    /// <summary>
    /// 邮箱
    /// </summary>
    [Required]
    [EmailAddress]
    public string Email { get; set; }

    /// <summary>
    /// 手机号
    /// </summary>
    public string PhoneNumber { get; set; }
    
    /// <summary>
    /// 角色列表
    /// </summary>
    public string[] RoleNames { get; set; }
}